﻿using System;
using System.Collections.Generic;
using System.Text;

using Octopus.Logging.Commons;
using Octopus.Logging.Running;

namespace Octopus.Logging
{
    /// <summary>日志输出器 </summary>
    public interface IAppender
    {
        /// <summary>初始化</summary>
        /// <param name="config">Logger运行当前数据</param>
        /// <param name="parser">可配置参数的实现</param>
        void Init(LoggerRuningContext config, IVolatileConfigParser parser);

        /// <summary>执行记录日志</summary>
        /// <param name="content">日志内容</param>
        bool DoAppend(string content);
    }
}
